package sjtu.sonnet.LDAPModule.RBAC.model.user;

import java.util.Vector;

import sjtu.sonnet.LDAPModule.RBAC.model.group.iGroup;
import sjtu.sonnet.LDAPModule.RBAC.model.role.iRole;
import java.io.Serializable;

public class User implements iUser,Serializable {

	public User() {

	}
	
	public User(String name) {
		this.name = name;
	}

	public User(Vector<iRole> roles, iGroup group, String name,
			String description) {
		this.roles = roles;
		this.group = group;
		this.name = name;
		this.description = description;
	}

	public iGroup getGroup() {
		return this.group;
	}

	public iRole getRoleAt(int i) {
		return this.roles.get(i);
	}

	public Vector<iRole> getRoles() {
		return this.roles;
	}

	public void setGroup(iGroup group) {
		this.group = group;
	}

	public void setRoles(Vector<iRole> roles) {
		this.roles = roles;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getDescription() {
		return description;
	}

	private Vector<iRole> roles;
	private iGroup group;
	private String name;
	private String description;


}
